import { get, post } from "./http"

//注册
export const reqRegister = params => post("/api/register", params)
//登录
export const reqLogin = params => post("/api/login", params)

//新人专享
export const reqNew= ()=>get("/api/getnew")
//万人团
export const reqGroupon= ()=>get("/api/getgroupon")
//倒计时
export const reqCountdown= ()=>get("/api/getcountdown")
//秒杀
export const reqSeckill= ()=>get("/api/getseckill")
//商品信息首页
export const reqIndexgoods= ()=>get("/api/getindexgoods")
//商品分类
export const reqCate= ()=>get("/api/getcate")
//分类商品
export const reqGoods= (parmas)=>get("/api/getgoods",parmas)
//优惠券
export const reqCoupon =()=>get("/api/getcoupon")
//购物车列表
export const reqCartlist =(params)=>get("/api/cartlist",params)
//购物车添加
export const reqCartadd =(params)=>post("/api/cartadd",params)
//购物车修改
export const reqCartedit =(params)=>post("/api/cartedit",params)
//购物车删除
export const reqCartdel =(params)=>post("/api/cartdelete",params)
//轮播图（我的）
export const reqBanner =()=>get("/api/getbanner")